<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            background-color: azure;
            width: 800px;
            height: 100px;
            border: 2px solid skyblue;
            border-radius: 0 16px 0 16px;
            margin: auto;
        }
        h5{
            margin: 10px 0 0 10px;
        }
        p{
            display: inline-block;
            margin: 0 0 5px 10px;
            justify-content: space-around;
            align-items: end;
            text-align: center;
        }
        span{
            color: skyblue;
        }
    </style>
</head>
<body>
    <script>
        let obj={
            name:'小米小米10青春版',
            num:'100012816024',
            weight:'0.55kg',
            address:'中国大陆'
        }
        //查对象
        console.log(obj)
        console.log(obj.address)
        //改对象
        obj.weight='0.66kg'
        obj.name='小米10plus'
        console.log(obj.weight)
        //增对象
        obj.color='粉色'
        console.log(obj.color)
        //删除对象
        delete obj.color
        obj.color='粉色'
        console.log(obj)
        document.write(`<div><h5>品牌：<span>小米(MI)</span></h5><br>
            <p>商品名称:${obj.name}</p>
            <p>商品编号:${obj.num}</p>
            <p>商品毛重;${obj.weight}</p>
            <p>商品产地:${obj.address}</p>
            <p>颜色:${obj.color}</p></div>`)
    </script>
</body>
</html>